package com.cskaoyan.day1.datastructure;

/**
 * @author Common-zhou
 * @since 2023-02-27 15:54
 */
public class ArrayDemo1 {
    public static void main(String[] args) {
        int[] ints = new int[5];
        ints[0] = 10;
        ints[1] = 9;
        ints[2] = 5;
        ints[3] = 7;
        ints[4] = 8;

        // IndexOfOutOfBoundException
        //int[5]= 10;

        // 1.对于数组 要怎么样遍历
        for (int i = 0; i < ints.length; i++) {
            System.out.println(ints[i]);
        }


    }
}
